package com.tkjt.pms.calc.formula.common;

import java.util.HashMap;
import java.util.Map;

public class FormulaResult2 {

	private String retCode;
	private String retMsg;
	private Map<String, Object> results = new HashMap<String, Object>();

	public String getRetCode() {
		return retCode;
	}

	public void setRetCode(String retCode) {
		this.retCode = retCode;
	}

	public String getRetMsg() {
		return retMsg;
	}

	public void setRetMsg(String retMsg) {
		this.retMsg = retMsg;
	}

	public void addResult(String item, Object value) {
		results.put(item, value);
	}

	public Object getResult(String item) {
		return results.get(item);
	}
	
	public void removeResult(String item) {
		results.remove(item);
	}
	
	public boolean isSuccess() {
		return FormulaConsts.RET_SUCCESS.equals(this.retCode);
	}
	

}
